// class domain{
//   constructor(username,password){
//     this.username = username;
//     this.password=password;
//   }
//   constructor(phone){
//     this.phone = phone;
//   }
// }
//
// export default domain

//在此处进行登陆后的用户信息存储管理
import { reactive } from "vue";

const state = reactive({
  user: null,
});

const setUser = (user) => {
  state.user = user;
};

const clearUser = () => {
  state.user = null;
};

export default {
  state,
  setUser,
  clearUser,
};
